#! /bin/bash

clear
echo "--------just do it--------"

if [ $# -eq 1 ] && [ $1 = "clean" ]
then
	echo --------cleaning--------
	make -C /mnt/os/bz-kernel/src/bz clean
fi

./prepare_system.sh && ./create_image.sh &&  ./run_system.sh && echo "---------cleaning--------" && make -C /mnt/os/bz-kernel/src/bz clean
echo "--------finished--------"
